const http = require('../utils/http.js');

// 根据ad位置获取banner
const getBanners = (adId) => {
    // return http.request('GET', `/Banner/${adId}/list`)
    return http.request('GET', `/api/goods/goodsInfo?id=2012090929379695735`,{},true)
}

// 根据adId获取最新一条数据
const getLatestBanner = (adId) => {
    return http.request('GET', `/Banner/${adId}/latest`)
}

// 根据id获取 banner
const bannerInfo = (id) => {
    return http.request('GET', `/Banner/${id}`)
}

module.exports = {
    getBanners,
    getLatestBanner,
    bannerInfo
}